$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  .section1{
    margin: 11vw 6vw 3vw 6vw;
    display: flex;
    align-items: center;
    .dot{
      display: flex;
      align-items: center;
      margin: 0 7vw;
      span{
        width: 6/$f+vw;
        height: 6/$f+vw;
        border-radius: 50%;
        background-color: #000;
      }
      p{
        color: #000;
        font-size: $fontSize_16;
        margin-left: .6vw;
      }
    }
    .types{
      display: flex;
      a{
        display: flex;
        align-items: flex-end;
        color: #999A9A;
        font-size: $fontSize_48;
        font-family: 'SourceHanSansCN-Medium';
        margin-right: 3vw;
        transition: all 600ms;
        span{
          font-size: $fontSize_16;
          font-family: 'SourceHanSansCN-Normal';
          margin-left: 0.5vw;
        }
        &:hover{
          color: #1B2170;
        }
      }
      .active{
        color: #1B2170;
      }
    }
  }
  .section2{
    margin-bottom: 6vw;
    .item{
      display: flex;
      justify-content: space-between;
      margin-bottom: 4vw;
      .pic{
        width: 50%;
        img{
          width: 100%;
          display: block;
          object-fit: cover;
          border-top-right-radius: 100/$f+vw;
        }
      }
      .text{
        width:30%;
        padding: 5vw 10%;
        .p1{
          color: #000;
          font-size: $fontSize_48;
          font-family: 'SourceHanSansCN-Medium';
          line-height: 1.4;
        }
        .des{
          color: #666;
          font-size: $fontSize_18;
          margin: 1vw 0 3vw 0;
        }
        a{
          display:block;
          width: fit-content;
          border: 1px solid #000;
          padding: 0.4vw 4vw;
          color:#000;
          font-size: $fontSize_16;
          transition: all 600ms;
          &:hover{
            background-color: #1B2170;
            color:white;
            border-color: #1B2170;
          }
        }
      }
    }
    .item:nth-child(2n){
      flex-direction: row-reverse;
      .pic{
        img{
          border-top-left-radius: 100/$f+vw;
          border-top-right-radius: 0;
        }
      }
    }
  }
  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      margin: 40px 5% 30px 5%;
      flex-direction: column;
      align-items: flex-start;
      .dot{
        margin: 0;
        span{
          width: 6px;
          height: 6px;
        }
        p{
          font-size: 18px;
          margin-left: 5px;
        }
      }
      .types{
        flex-wrap: wrap;
        a{
          font-size: 26px;
          width: 50%;
          margin: 10px 0 0 0;
        }
      }
    }
    .section2{
      .item{
        flex-direction: column !important;
        margin-bottom: 30px;
        .pic{
          width: 100%;
        }
        .text{
          width: 90%;
          padding: 30px 5%;
          .p1{
            font-size: 24px;
          }
          .des{
            font-size: 16px;
            margin: 10px 0 30px 0;
          }
          a{
            font-size: 14px;
            padding: 8px 0;
            width: 60%;
            text-align: center;
          }
        }
      }
    }
  }
}